package com.link.base.base.applyqualityinfor.service;

import com.link.base.base.applyquality.model.ApplyQuality;
import com.link.base.base.applyqualityinfor.dao.mybatis.mapper.ApplyQualityInforMapper;
import com.link.base.base.applyqualityinfor.model.ApplyQualityInfor;
import com.link.core.basic.dao.mapper.BasicMapper;
import com.link.core.basic.service.BasicServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author liushoulong
 * @date 2018-11-08
 * @desc 酒体质检报告申请-产品信息Service
 */
@Service
public class ApplyQualityInforServiceImpl extends BasicServiceImpl<ApplyQualityInfor> implements ApplyQualityInforService {

    @Resource
    private ApplyQualityInforMapper applyQualityInforMapper;

    @Override
    public BasicMapper<ApplyQualityInfor> getBasicMapper() {
        return applyQualityInforMapper;
    }

    /**
     * 根据申请ID进行查询对应的产品
     *
     * @param applyQuality
     * @return List
     * @throws Exception
     */
    @Override
    public List<ApplyQualityInfor> queryByApplyId(ApplyQuality applyQuality) throws Exception {
        return applyQualityInforMapper.queryByApplyId(applyQuality);
    }
}
